package cn.wolfcode.car.service;

import cn.wolfcode.car.domain.EmployeeRole;
import cn.wolfcode.car.domain.Permission;
import cn.wolfcode.car.qo.EmployeeRoleQueryObject;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface IEmployeeRoleService {
    int delete(Long id);

    int save(EmployeeRole record);

    EmployeeRole get(Long id);

    PageInfo<EmployeeRole> list(EmployeeRoleQueryObject qo);

    List<EmployeeRole> listAll();

    int update(EmployeeRole record);

    void deleteByEmployeeId(Long id);

    List<Permission> getPermission(Long id);
}
